﻿using System.Collections.Generic;
using System.Linq;
using NOSDC.Pocos;

namespace NOSDC.Models
{
    public class EventsViewModel
    {
        public IEnumerable<Events> UpcomingEvents { get; set; }
        public bool IsAttendingEvent { get; set; }
        public IEnumerable<Events> PastEvents { get; set; }
        public int TotalEvents { get; set; }

        public bool NoEvent
        {
            get { return UpcomingEvents == null || !UpcomingEvents.Any(); }
        }
    }
}